﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainModel.Entities;

namespace DomainModel.Abstract
{
    public interface INewsRepository
    {
        IEnumerable<News> GetAll();
        IEnumerable<News> GetAll(bool isPublished);
        IEnumerable<News> GetTop(int topNumber);

        News Get(int? id);
        void Save(News news);
        void Delete(int id);
    }
}
